//
// Created by 吴喆 on 2020/3/6.
//

#ifndef SUMMER_DEMOSCENE_H
#define SUMMER_DEMOSCENE_H


#import "../engine/Scene.h"
#import "../engine/World.h"
#include "../util/ConfigUtil.h"
#include "../engine/ResourceManager.h"
#include "../engine/CollisionListener.h"
#include "DemoPlayer.h"
#include "SpriteRender.h"
#include "BackgroundRenderer.h"

class DemoScene : public Scene {

public:
    DemoScene();

    // 逻辑更新
    void update() final;
protected:
    void renderBackground(Renderer &renderer) final;

public:


private:
public:
    void initRenderer() final;

private:
    void initBackground() final;
    void initPlayer() final;
    void initCamera() final;
    void initMap() final;
    const double ratio;
};


#endif //SUMMER_DEMOSCENE_H
